package com.luhuiguo.cms.shared.event;

import com.google.gwt.event.shared.GwtEvent;
import com.luhuiguo.cms.shared.model.ChannelModel;

public class EditArticleCancelledEvent extends GwtEvent<EditArticleCancelledEventHandler> {
    public static Type<EditArticleCancelledEventHandler> TYPE = new Type<EditArticleCancelledEventHandler>();

    private final Long channel;

    public EditArticleCancelledEvent(Long channel) {
        super();
        this.channel = channel;
    }

    public Long getChannel() {
        return channel;
    }

    @Override
    public Type<EditArticleCancelledEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(EditArticleCancelledEventHandler handler) {
        handler.onEditArticleCancelled(this);
    }
}
